var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.redirect('html/index.html');
});





//api
router.get('/swiper', function(req, res, next) {
  var data = {"content":[{"id":1,"name":"test","image":"http://placeholder.qiniudn.com/640x200"},{"id":1,"name":"test","image":"http://placeholder.qiniudn.com/640x200"},{"id":1,"name":"test","image":"http://placeholder.qiniudn.com/640x200"}]}
  res.json(data);
});


module.exports = router;
